/**
 * 分页查询粮食转仓记录列表
 *
 * @param data
 * @returns {*}
 */
function pageList(data) {
    return requests({
        url: '/admin/sysFoodTransfer/pageList',
        method: 'post',
        data: data
    })
}

/**
 * 查询粮食转仓记录详细
 * @param id
 * @returns {*}
 */
function detail(id) {
    return requests({
        url: '/admin/sysFoodTransfer/query/' + id,
        method: 'get'
    })
}

/**
 * 新增粮食转仓记录
 *
 * @param data
 * @returns {*}
 */
function add(data) {
    return requests({
        url: '/admin/sysFoodTransfer/add',
        method: 'post',
        data: data
    })
}

/**
 * 修改粮食转仓记录
 *
 * @param data
 * @returns {*}
 */
function update(data) {
    return requests({
        url: '/admin/sysFoodTransfer/update',
        method: 'post',
        data: data
    })
}

/**
 *  删除粮食转仓记录
 * @param id
 * @returns {*}
 */
function del(id) {
    return requests({
        url: '/admin/sysFoodTransfer/delete/' + id,
        method: 'delete'
    })
}

/**
 * 导出粮食转仓记录
 *
 * @param query
 * @returns {*}
 */
function exportData(data) {
    return requests({
        url: '/admin/sysFoodTransfer/export',
        method: 'post',
        data: data
    })
}

function pageHouseList(data) {
    return requests({
        url: '/admin/sysWarehouse/pageList',
        method: 'post',
        data: data
    })
}

function pageFoodList(data) {
    return requests({
        url: '/admin/sysFood/pageList',
        method: 'post',
        data: data
    })
}